#ifndef _HTTP_THREAD_HPP_20120708
#define _HTTP_THREAD_HPP_20120708

#include "base.hpp"
#include "thread.hpp"

#include "connection.hpp"
#include "acceptor_manager.hpp"

#include "http_parser.hpp"
#include "http_processor.hpp"

using namespace mina;
using namespace mina::thread;

class HttpThread : public Thread
{
	public :
		typedef AcceptorManager HttpReactor;

	public :
		HttpThread();
		virtual ~HttpThread();
		
	protected :
		virtual void run();

	public :
		HttpReactor *     _reactor;

		HttpParser        _parser;
		HttpProcessor     _processor;

		DECL_LOGGER(logger);
};

#endif

